Woocommerce\Pagarme\Helper\Utils A

Total Complexity 72
Dependencies 5
Dependents 29
Total lines 678
Lines of code 294
Logical lines of code 118
Comment lines 262
Methods 40
Properties 0

Methods 40

Method Rating Maintainability Complexity Lines of code
build_customer_phones_from_order()
S
51 3 30
build_document_from_order()
S
55 3 21
sanitize()
S
64 4 9
rm_tags()
S
65 4 9
build_customer_shipping_from_wc_order()
S
52 2 23
is_request_ajax()
S
71 3 5
get_value_by()
S
70 3 6
convert_date()
S
69 3 6
error_server_json()
S
61 2 13
request()
S
68 2 7
format_order_price_to_view()
S
69 2 7
isCheckoutBlock()
S
70 2 6
getDocumentTypeByDocumentNumber()
S
73 2 4
getCustomerTypeByDocumentNumber()
S
73 2 4
get_json_post_data()
S
74 2 4
calc_percentage()
S
68 2 7
get_order_by_meta_value()
S
61 1 15
normalize_price()
S
67 2 8
format_order_price()
S
70 2 6
isCheckoutRequest()
S
71 2 6
format_desnormalized_order_price()
S
69 2 7
format_phone_number()
S
67 2 7
isCheckoutBlocksActive()
S
69 2 6
format_order_price_with_currency_symbol()
S
69 2 6
build_customer_address_from_order()
S
60 1 12
str_to_float()
S
78 1 3
snakeToPascalCase()
S
77 1 3
getRegisterScriptParameters()
S
65 1 9
getScriptVersion()
S
77 1 3
setScriptDeps()
S
72 1 5
getScriptUrl()
S
77 1 3
get()
S
78 1 3
format_document()
S
78 1 3
server()
S
74 1 4
get_admin_url()
S
78 1 3
get_site_url()
S
78 1 3
post()
S
78 1 3
get_phone_country_code()
S
65 1 9
get_component()
S
78 1 3
add_prefix()
S
79 1 3